<template>
  <view class="viewpoint" :style="{ paddingTop: safeAreaInsets!.top + 'px'}">
    <view class="info"
      ><view class="name" @tap="back"><text class="iconfont icon-fanhui"></text></view
    ></view>
    <h2 class="title">安心家医-智慧工作站</h2>
  </view>
</template>

<script setup lang="ts">
const { safeAreaInsets } = uni.getSystemInfoSync()
const back = () => {
  uni.navigateBack()
}
</script>

<style lang="scss">
.viewpoint {
  height: 50rpx;
  width: 100%;
  background-image: linear-gradient(to right, #cfe1ee, #eadaec);
  padding: 0 30rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  position: relative;
  .title {
    color: #000;
    font-size: 14rpx;
    font-weight: bold;
  }
  .info {
    height: 100%;
    display: flex;
    align-items: center;
    .avatar {
      height: 20rpx;
      width: 20rpx;
      border-radius: 20rpx;
      overflow: hidden;
    }
    .name {
      left: 10rpx;
      position: absolute;
      font-size: 12rpx;
      font-weight: bold;
      margin-left: 10rpx;
    }
  }
}
</style>